from peewee import *
db = MySQLDatabase('nemtocr', host='localhost', port=3800, user='root', password='!@mtg23YWZ^&')


class Person(Model):
    id = PrimaryKeyField()
    name = CharField(max_length=64, null=True)
    is_deleted = IntegerField()

    class Meta:
        database = db  # This model uses the "spider" database.
        table_name = 'university_type'  # 如果不指定，默认是person


if __name__ == '__main__':
    for person in Person.select():
        print(person.name, type(person))